package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class EventBase{
	boolean[] modified=new boolean[9];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public EventBase(){}
	public EventBase(java.lang.Long eventId,java.lang.Long appId,java.lang.Long userId,java.lang.Long spotId,java.lang.Long objectId,java.lang.Long targetId,java.lang.Integer action,java.lang.Integer result,java.util.Date eventTime){
		setEventId(eventId);
		setAppId(appId);
		setUserId(userId);
		setSpotId(spotId);
		setObjectId(objectId);
		setTargetId(targetId);
		setAction(action);
		setResult(result);
		setEventTime(eventTime);
	}
	public void setEventId(java.lang.Long eventId){
		if(eventId!=null) {
			set("eventId",eventId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getEventId(){
		return (java.lang.Long)get("eventId");
	}
	public void setAppId(java.lang.Long appId){
		if(appId!=null) {
			set("appId",appId);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getAppId(){
		return (java.lang.Long)get("appId");
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[2] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setSpotId(java.lang.Long spotId){
		if(spotId!=null) {
			set("spotId",spotId);
			this.modified[3] =true;
		}
	}
	public java.lang.Long getSpotId(){
		return (java.lang.Long)get("spotId");
	}
	public void setObjectId(java.lang.Long objectId){
		if(objectId!=null) {
			set("objectId",objectId);
			this.modified[4] =true;
		}
	}
	public java.lang.Long getObjectId(){
		return (java.lang.Long)get("objectId");
	}
	public void setTargetId(java.lang.Long targetId){
		if(targetId!=null) {
			set("targetId",targetId);
			this.modified[5] =true;
		}
	}
	public java.lang.Long getTargetId(){
		return (java.lang.Long)get("targetId");
	}
	public void setAction(java.lang.Integer action){
		if(action!=null) {
			set("action",action);
			this.modified[6] =true;
		}
	}
	public java.lang.Integer getAction(){
		return (java.lang.Integer)get("action");
	}
	public void setResult(java.lang.Integer result){
		if(result!=null) {
			set("result",result);
			this.modified[7] =true;
		}
	}
	public java.lang.Integer getResult(){
		return (java.lang.Integer)get("result");
	}
	public void setEventTime(java.util.Date eventTime){
		if(eventTime!=null) {
			set("eventTime",eventTime);
			this.modified[8] =true;
		}
	}
	public java.util.Date getEventTime(){
		return (java.util.Date)get("eventTime");
	}
}
